
package com.example.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

@Data
@TableName("log")
public class Log {

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @TableField("log_name")
    private String logName;

    @TableField("log_time")
    private String logTime;

    @TableField("user_name")
    private String userName;

    @TableField("ip")
    private String ip;

    public Log(Long id, String logName, String logTime, String userName, String ip) {
        this.id = id;
        this.logName = logName;
        this.logTime = logTime;
        this.userName = userName;
        this.ip = ip;
    }

}
